﻿using TealightV5.Models.Bases;
using TealightV5.Models.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TealightV5.Models
{ 
    public partial class UserInformationList : Model, IModel, System.IEquatable<UserInformationList>, IComparable<UserInformationList>
    {
        public int CompareTo(UserInformationList other)
        {
            return Id.CompareTo(other.Id);
        }
        public bool Equals(UserInformationList other)
        {
            return Id == other.Id;
        }

        public int Id
        {
            get
            {
                return this._Id;
            }
            set
            {
                if (Id != value)
                {
                    this.OnIdChanging(value);
                    this._Id = value;
                    this.OnIdChanged();
                    this.OnPropertyChanged("Id");
                }
            }
        }

        private int _Id;
        partial void OnIdChanging(int value);
        partial void OnIdChanged();


        public string Title
        {
            get
            {
                return this._Title;
            }
            set
            {
                if (Title != value)
                {
                    this.OnTitleChanging(value);
                    this._Title = value;
                    this.OnTitleChanged();
                    this.OnPropertyChanged("Title");
                }
            }
        }

        private string _Title;
        partial void OnTitleChanging(string value);
        partial void OnTitleChanged();


        public string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                if (Name != value)
                {
                    this.OnNameChanging(value);
                    this._Name = value;
                    this.OnNameChanged();
                    this.OnPropertyChanged("Name");
                }
            }
        }

        private string _Name;
        partial void OnNameChanging(string value);
        partial void OnNameChanged();

    }
}
